<%--
 *  File:    PlanTypeFrm.jsp
 *  @Author: shigang
 *  Date:    2013/05/31
 *
 *  Copyright (C) 2000 - 2001 Oval Technologies, Inc.
 *  All rights reserved. 
 *
 *  This software is the confidential and proprietary information of Oval 
 *  Technologies, Inc. ("Confidential Information").  You shall not
 *  disclose such Confidential Information and shall use it only in
 *  accordance with the terms of the license agreement you entered into
 *  with Oval.
--%>


<%@ include file="/inc/SessionTimeout.inc"%>
<%@ page language="java" %>     
<%@ page import="java.util.*" %>
<%@ page import="org.apache.log4j.Category" %>

<%@ page contentType = "text/html;charset=UTF-8" %>
<%@ taglib uri="/WEB-INF/PageFlow.tld" prefix="PageFlow" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/oval-tag.tld" prefix="oval" %>
<%@ taglib uri="/WEB-INF/custom-tag.tld" prefix="custom" %>

<% //--------------------------------------  setting logger --%>

<%
  Category cat = Category.getInstance("jsp.PlanTypeFrm");
  //init param
  String privilegeCode = "FP0101";
  String strModuleName = "DMS";
  String pageName = "p_plantypefrm";
%>
<%@ include file="/inc/Security.inc" %>
<%@ include file="/inc/PageDefault.inc" %>
<%@ include file="/inc/InitEdit.inc" %>
<%@ include file="/inc/FrmDefault.inc" %> 
<html>
<head>
<title>VisitProcessFrm</title>
<PageFlow:CheckPageFlow pageName="p_plantypefrm"/>
<%  
    String viewflag = "";
         if (pageContext.getAttribute("viewflag")!=null&&"view".equals((String)pageContext.getAttribute("viewflag"))) {
            viewflag = "&viewflag=view";
        }else{
            viewflag = "&viewflag=";
         }

    String strIsDefault = (String)pageContext.getAttribute("isdefault");
	if("Y".equals(pageContext.getAttribute("isdefault"))) {
		strIsDefault = "&isdefault=Y";
	}else if ("N".equals(pageContext.getAttribute("isdefault"))) {
		strIsDefault = "&isdefault=N";
	}else  {
		strIsDefault = null;
	}
	String plantypeid = null;
	if(pageContext.getAttribute("plantypeid") != null) {
		plantypeid=((Integer)pageContext.getAttribute("plantypeid")).toString();
	}
	plantypeid=(plantypeid==null)?"":("&plantypeid="+plantypeid);
    
    String isNew = (String)pageContext.getAttribute("isNew");
	if("Y".equals((String)pageContext.getAttribute("isNew"))) {
		isNew = "&isNew=Y";
	}else if ("N".equals((String)pageContext.getAttribute("isNew"))) {
		isNew = "&isNew=N";
	}else  {
		isNew = null;
	}
	String isdetail = (String)pageContext.getAttribute("isdetail");
	String strurl = null;

	
	strurl = "PlanTypeMain.jsp?"+OvalTools.randomURL()+ "&languagecode="+JspHelper.filterNull( strFrmLanguageCode )+JspHelper.filterNull( strIsDefault)+JspHelper.filterNull(plantypeid)+JspHelper.filterNull(isNew)+JspHelper.filterNull(viewflag);
%>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<frameset rows="70,*" frameborder="YES" border="0" framespacing="0" cols="*" bordercolor="#999999">
  <frame name="up" src="PlanTypeHeaderEdit.jsp?<%= OvalTools.randomURL() %>&languagecode=<%=JspHelper.filterNull( strFrmLanguageCode )%><%=JspHelper.filterNull( strIsDefault)%><%=JspHelper.filterNull(plantypeid)%><%=JspHelper.filterNull(isNew)%><%=JspHelper.filterNull(viewflag)%>" frameborder="NO" scrolling="NO">
  <frame name="down" src="<%=JspHelper.filterNull( strurl)%>" scrolling="yes" frameborder="NO" noresize >
</frameset>
<noframes> 
<body>
</body>
</noframes> 
</html>


